package model;

public class Course {
    private String courseId;
    private String courseName; // 课程名称属性
    private String location;
    private String time;
    private String teacherId;
    private String contentIntro;

    public Course(String courseId, String courseName, String location, String time, String teacherId, String contentIntro) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.location = location;
        this.time = time;
        this.teacherId = teacherId;
        this.contentIntro = contentIntro;
    }

    // 新增的 getCourseName 方法，用来获取课程名称
    public String getCourseName() {
        return courseName;
    }

    // 其他属性的 get 和 set 方法（这里省略，可根据需要添加）
    public String getCourseId() {
        return courseId;
    }

    public String getLocation() {
        return location;
    }

    public String getTime() {
        return time;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public String getContentIntro() {
        return contentIntro;
    }

    public void showCourseInfo() {
        System.out.println("课程编号：" + courseId + "，课程名称：" + courseName + "，上课地点：" + location + "，时间：" + time + "，授课教师编号：" + teacherId + "，课程介绍：" + contentIntro);
    }
}